package com.oa.web;

import java.util.List;

import com.oa.entity.Dept;
import com.oa.service.DeptService;
import com.opensymphony.xwork2.ActionSupport;

public class DeptAction  extends ActionSupport{
	//调用业务层
	private DeptService deptService;
	private List<Dept> list;
	public String findAll(){
		list = deptService.findAll();
		return SUCCESS;
	}
	
	public DeptService getDeptService() {
		return deptService;
	}

	public void setDeptService(DeptService deptService) {
		this.deptService = deptService;
	}

	public List<Dept> getList() {
		return list;
	}

	public void setList(List<Dept> list) {
		this.list = list;
	}
	
	
	
	
}
